← Back
Editing: index-legacy465.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function c(n,o,a,u){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return r(s,"_invoke",function(n,r,o){var a,u,c,l=0,s=o||[],f=!1,y={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,u=0,c=e,y.n=n,i}};function p(n,r){for(u=n,c=r,t=0;!f&&l&&!o&&t<s.length;t++){var o,a=s[t],p=y.p,d=a[2];n>3?(o=d===r)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(u=0,y.v=r,y.n=a[1]):p<d&&(o=n<3||a[0]>r||r>d)&&(a[4]=n,a[5]=r,y.n=d,u=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),u=s,c=d;(t=u<2?e:c)||!f;){a||(u?u<3?(u>1&&(y.n=-1),p(u,c)):y.n=c:y.v=c);try{if(l=2,a){if(u||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,u<2&&(u=0)}else 1===u&&(t=a.return)&&t.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=e}else if((t=(f=y.n<0)?c:n.call(r,y))!==i)break}catch(t){a=e,u=1,c=t}finally{l=1}}return{value:t,done:f}}}(n,a,u),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var y=[][a]?t(t([][a]())):(r(t={},a,function(){return this}),t),p=f.prototype=l.prototype=Object.create(y);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,r(e,u,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,r(p,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,u,"GeneratorFunction"),r(p),r(p,u,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(n=function(){return{w:c,m:d}})()}function r(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}r=function(e,t,n,o){function u(t,n){r(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(u("next",0),u("throw",1),u("return",2))},r(e,t,n,o)}function o(e,t,n,r,o,a,u){try{var c=e[a](u),i=c.value}catch(e){return void n(e)}c.done?t(i):Promise.resolve(i).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var u=e.apply(t,n);function c(e){o(u,r,a,c,i,"next",e)}function i(e){o(u,r,a,c,i,"throw",e)}c(void 0)})}}System.register(["./base-lib-legacy.js?v=1765440387","./validator-legacy.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./firewall-legacy.js?v=1765440387","./index-legacy307.js?v=1765440387","./store-legacy8.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387","./column-legacy.js?v=1765440387","./store-legacy5.js?v=1765440387"],function(t,r){"use strict";var o,u,c,i,l,s,f,y,p,d,v,m,h,b,g,j,_,w,S,x,O,T,V,A,k;return{setters:[function(e){o=e.c,u=e.s,c=e.k,i=e.r,l=e.p,s=e.q,f=e.v,y=e.e,p=e.A,d=e.x,v=e.B,m=e.y,h=e.am,b=e.aa,g=e.a8},function(e){j=e._},function(e){_=e.u,w=e.K,S=e.j,x=e.b,O=e.e},function(e){T=e.aV,V=e.aW},function(e){A=e.H},function(e){k=e.H},null,null,null,null],execute:function(){var r={class:"p-[2rem]"},G={class:"tip"},P=o({__name:"index",emits:["close"],setup:function(t,o){var O=o.expose,P=o.emit,C=A(),E=k(),F=u(C).repairTypeActive,I=u(E).isMalwareConfirm,U=P,H=_().payment.value.authType,q=x(),M=c({cycle:"0",channel:[],status:!1}),N=i(),B=i(!1),D=function(){var e=a(n().m(function e(){var t,r,o,a=arguments;return n().w(function(e){for(;;)switch(e.n){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],e.n=1,T();case 1:r=e.v,o=r.data,M.cycle=o.cycle,M.channel=""===o.channel?[]:o.channel.split(","),M.status=!!o.status,t&&q.success("刷新成功");case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),K=function(){var e=a(n().m(function e(){var t;return n().w(function(e){for(;;)switch(e.n){case 0:if("ltd"===H){e.n=1;break}return e.a(2,q.error("抱歉!该功能为企业版专享功能!"));case 1:if(M.channel=M.channel.filter(function(e){return e}),(t=M.channel.join(","))||!M.status){e.n=2;break}return q.error("请选择告警方式"),e.a(2);case 2:return e.n=3,N.value.validate();case 3:w({loading:B,request:V({day:Number(M.cycle),channel:t,status:M.status?1:0}),message:!0,success:function(e){e.status&&(D(),"overview"===F.value&&(I.value=!0,E.capabilitySwitch.vul_scan.status=M.status,E.getSafeOverviewData()),U("close"))}});case 4:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return O({onConfirm:K}),l(function(){D()}),function(t,n){var o=h,a=b,u=S,c=j,i=g;return s(),f("div",r,[y(i,{model:d(M),ref_key:"safeScanForm",ref:N,disabled:d(B)},{default:p(function(){return[y(a,{label:"自动扫描"},{default:p(function(){return[y(o,{modelValue:d(M).status,"onUpdate:modelValue":n[0]||(n[0]=function(e){return d(M).status=e})},null,8,["modelValue"])]}),_:1}),y(a,{label:"周期",prop:"cycle"},{default:p(function(){return[y(u,{class:"!w-[14rem]",modelValue:d(M).cycle,"onUpdate:modelValue":n[1]||(n[1]=function(e){return d(M).cycle=e}),min:0,type:"number",textType:"天"},{append:p(function(){return e(n[4]||(n[4]=[v(" 天 ",-1)]))}),_:1},8,["modelValue"])]}),_:1}),y(a,{label:"告警方式",prop:"give"},{default:p(function(){return[y(c,{class:"!w-[36rem]",modelValue:d(M).channel,"onUpdate:modelValue":n[2]||(n[2]=function(e){return d(M).channel=e}),limit:["sms","wx_account"]},null,8,["modelValue"])]}),_:1})]}),_:1},8,["model","disabled"]),m("div",G,[m("ul",null,[m("li",null,[n[5]||(n[5]=v(" 点击配置后状态未更新,尝试点击【 ",-1)),m("span",{class:"text-[#20a53a] hover:text-[#1d9534] cursor-pointer",onClick:n[3]||(n[3]=function(e){return D(!0)})},"手动刷新"),n[6]||(n[6]=v(" 】 ",-1))])])])])}}});t("default",O(P,[["__scopeId","data-v-00192d90"]]))}}})}();
Save File
Cancel